package com.zys.sac.core.filter;

import org.springframework.security.web.util.matcher.AntPathRequestMatcher;

/**
 * Created by zhongjunkai on 2022/4/18.
 */
public class SimpleCheckFilter extends JwtCheckFilter {

    public SimpleCheckFilter(String loginPath) {
        super(loginPath);
        this.addAvoidMatcher(new AntPathRequestMatcher("/**", "GET"));
        this.addAvoidMatcher(new AntPathRequestMatcher("/**", "POST"));
    }

    @Override
    public String loginPath() {
        return this.loginPath;
    }
}
